hide := @
ECHO := echo

G++ := /home/yhy01/system/rv1126_rv1109_linux_sdk_v1.8.0_20210224/prebuilts/gcc/linux-x86/arm/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
CFLAGS := -I /opt/arm_opencv_source/include

LIB_FILES := -L /opt/arm_opencv_source/lib	

LD_FLAGS := -lopencv_core -lopencv_dnn \
			-lopencv_features2d -lopencv_flann -lopencv_highgui \
			-lopencv_imgcodecs -lopencv_imgcodecs -lopencv_imgproc \
			-lopencv_ml -lopencv_objdetect -lopencv_photo -lopencv_shape \
			-lopencv_stitching -lopencv_superres -lopencv_videoio -lopencv_video \
			-lopencv_calib3d

CFLAGS += -DRKAIQ


all:
	$(G++) -o opencv_findContours $(CFLAGS) $(LIB_FILES) $(LD_FLAGS)  opencv_findContours.cpp
#	$(G++) -o opencv_addWeighted_my $(CFLAGS) $(LIB_FILES) $(LD_FLAGS)  opencv_addWeighted_my.cpp
#	$(G++) -o opencv_copyTo $(CFLAGS) $(LIB_FILES) $(LD_FLAGS)  opencv_copyTo.cpp
#	$(G++) -o opencv_imread_demo3 $(CFLAGS) $(LIB_FILES) $(LD_FLAGS)  opencv_imread_demo3.cpp
#	$(G++) -o opencv_imread_demo1 $(CFLAGS) $(LIB_FILES) $(LD_FLAGS)  opencv_imread_demo1.cpp
	$(hide)$(ECHO) "Build Done ..."
	